//
//  SDDemoViewController.swift
//  shudong
//
//  Created by luojie on 2018/3/11.
//  Copyright © 2018年 luojie. All rights reserved.
//

import UIKit

class SDDemoViewController: SDBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        //设置标题
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
        // Do any additional setup after loading the view.
    }
    func  showNext(){
      let vc = SDDemoViewController()
      navigationController?.pushViewController(vc, animated: true)
    
    }

}
extension SDDemoViewController{
    override func setupUI() {
        super.setupUI()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "next", target: self, action: #selector(showNext))
    }
}
